package services

import "Sales_system/Dao"

func Getalldetails() (error,[]Dao.Order_details, int64){
	err, detailsData, total := Dao.Get_details()
	return err, detailsData, total
}

func Deletedetails(id string) error {
	err := Dao.Delete_details(id)
	return err
}

func Updatedetails(order Dao.Order_details) error  {
	err := Dao.Update_details(order)
	return err
}

func Adddetails(order Dao.Order_details) error {
	err := Dao.Add_details(order)
	return err
}